<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: combodir.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00056.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">combodir.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03620_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00056_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:abc491679a3bb0b275cac3e32c427785a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#abc491679a3bb0b275cac3e32c427785a">CTLMGR</a></td></tr>
<tr class="separator:abc491679a3bb0b275cac3e32c427785a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48d8d8141ec662b8226255f51071fd74"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a48d8d8141ec662b8226255f51071fd74">LSTRING</a></td></tr>
<tr class="separator:a48d8d8141ec662b8226255f51071fd74"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a82be10abc3b42ea2c92b4e48c0179f8b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a82be10abc3b42ea2c92b4e48c0179f8b">xxxCBDir</a> (<a class="el" href="a00257.html#a0e71fed4fda7872f1712eca2edad533b">PCBOX</a> pcbox, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> attrib, LPWSTR pFileName)</td></tr>
<tr class="separator:a82be10abc3b42ea2c92b4e48c0179f8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6440a70b22c103b7f79abb389a3684af"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a6440a70b22c103b7f79abb389a3684af">DlgDirSelectComboBoxExA</a> (HWND hwndDlg, LPSTR pszOut, int cchOut, int idComboBox)</td></tr>
<tr class="separator:a6440a70b22c103b7f79abb389a3684af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f7f32d9391c331ea82426857686694e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a5f7f32d9391c331ea82426857686694e">DlgDirSelectComboBoxExW</a> (HWND hwndDlg, LPWSTR pwszOut, int cchOut, int idComboBox)</td></tr>
<tr class="separator:a5f7f32d9391c331ea82426857686694e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc7d6ed12b0f0c5aed44692fe6580067"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#acc7d6ed12b0f0c5aed44692fe6580067">DlgDirListComboBoxA</a> (HWND hwndDlg, LPSTR lpszPathSpecClient, int idComboBox, int idStaticPath, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> attrib)</td></tr>
<tr class="separator:acc7d6ed12b0f0c5aed44692fe6580067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0290e9e6cc7284b6093c60c2018d9cd2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00056.html#a0290e9e6cc7284b6093c60c2018d9cd2">DlgDirListComboBoxW</a> (HWND hwndDlg, LPWSTR lpszPathSpecClient, int idComboBox, int idStaticPath, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> attrib)</td></tr>
<tr class="separator:a0290e9e6cc7284b6093c60c2018d9cd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="abc491679a3bb0b275cac3e32c427785a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc491679a3bb0b275cac3e32c427785a">&#9670;&nbsp;</a></span>CTLMGR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CTLMGR</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00056_source.html">combodir.c</a> 第 <a class="el" href="a00056_source.html#l00013">13</a> 行定义.</p>

</div>
</div>
<a id="a48d8d8141ec662b8226255f51071fd74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48d8d8141ec662b8226255f51071fd74">&#9670;&nbsp;</a></span>LSTRING</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LSTRING</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00056_source.html">combodir.c</a> 第 <a class="el" href="a00056_source.html#l00014">14</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="acc7d6ed12b0f0c5aed44692fe6580067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc7d6ed12b0f0c5aed44692fe6580067">&#9670;&nbsp;</a></span>DlgDirListComboBoxA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DlgDirListComboBoxA </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwndDlg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPSTR&#160;</td>
          <td class="paramname"><em>lpszPathSpecClient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idComboBox</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idStaticPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>attrib</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00056_source.html">combodir.c</a> 第 <a class="el" href="a00056_source.html#l00138">138</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;{</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    LPWSTR lpszPathSpec;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndDlg;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwndDlg;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    BOOL fRet;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    pwndDlg = <a class="code" href="a00293.html#a41d387d1b2d42169cbaa2092c8a02abf">ValidateHwnd</a>(hwndDlg);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordflow">if</span> (pwndDlg == NULL)</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    lpszPathSpec = NULL;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="keywordflow">if</span> (lpszPathSpecClient) {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="keywordflow">if</span> (!MBToWCS(lpszPathSpecClient, -1, &amp;lpszPathSpec, -1, TRUE))</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    }</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pwndDlg, &amp;tlpwndDlg);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    fRet = <a class="code" href="a00185.html#a131e5c46fc82be68e731aad956628a96">xxxDlgDirListHelper</a>(pwndDlg, lpszPathSpec, lpszPathSpecClient,</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            idComboBox, idStaticPath, attrib, FALSE);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    ThreadUnlock(&amp;tlpwndDlg);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">if</span> (lpszPathSpec) {</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        <span class="keywordflow">if</span> (fRet) {</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="comment">             * Non-zero retval means some text to copy out.  Copy out up to</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">             * the nul terminator (buffer will be big enough).</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            WCSToMB(lpszPathSpec, -1, &amp;lpszPathSpecClient, MAXLONG, FALSE);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        UserLocalFree(lpszPathSpec);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    }</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="keywordflow">return</span> fRet;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a00293_source.html#l00090">ValidateHwnd</a> , 以及 <a class="el" href="a00185_source.html#l00189">xxxDlgDirListHelper()</a>.</p>

</div>
</div>
<a id="a0290e9e6cc7284b6093c60c2018d9cd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0290e9e6cc7284b6093c60c2018d9cd2">&#9670;&nbsp;</a></span>DlgDirListComboBoxW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DlgDirListComboBoxW </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwndDlg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>lpszPathSpecClient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idComboBox</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idStaticPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>attrib</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00056_source.html">combodir.c</a> 第 <a class="el" href="a00056_source.html#l00180">180</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;{</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    LPWSTR lpszPathSpec;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwndDlg;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndDlg;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    BOOL fRet;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    pwndDlg = <a class="code" href="a00293.html#a41d387d1b2d42169cbaa2092c8a02abf">ValidateHwnd</a>(hwndDlg);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordflow">if</span> (pwndDlg == NULL)</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    lpszPathSpec = lpszPathSpecClient;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pwndDlg, &amp;tlpwndDlg);</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    fRet = <a class="code" href="a00185.html#a131e5c46fc82be68e731aad956628a96">xxxDlgDirListHelper</a>(pwndDlg, lpszPathSpec, (LPBYTE)lpszPathSpecClient,</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            idComboBox, idStaticPath, attrib, FALSE);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    ThreadUnlock(&amp;tlpwndDlg);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keywordflow">return</span> fRet;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a00293_source.html#l00090">ValidateHwnd</a> , 以及 <a class="el" href="a00185_source.html#l00189">xxxDlgDirListHelper()</a>.</p>

</div>
</div>
<a id="a6440a70b22c103b7f79abb389a3684af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6440a70b22c103b7f79abb389a3684af">&#9670;&nbsp;</a></span>DlgDirSelectComboBoxExA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DlgDirSelectComboBoxExA </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwndDlg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPSTR&#160;</td>
          <td class="paramname"><em>pszOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cchOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idComboBox</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00056_source.html">combodir.c</a> 第 <a class="el" href="a00056_source.html#l00069">69</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;{</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    LPWSTR lpwsz;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    BOOL fRet;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    lpwsz = (LPWSTR)UserLocalAlloc(HEAP_ZERO_MEMORY, cchOut * <span class="keyword">sizeof</span>(WCHAR));</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordflow">if</span> (!lpwsz) {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    fRet = <a class="code" href="a00056.html#a5f7f32d9391c331ea82426857686694e">DlgDirSelectComboBoxExW</a>(hwndDlg, lpwsz, cchOut, idComboBox);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    WCSToMB(lpwsz, -1, &amp;pszOut, cchOut, FALSE);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    UserLocalFree(lpwsz);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">return</span> fRet;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00056_source.html#l00092">DlgDirSelectComboBoxExW()</a>.</p>

</div>
</div>
<a id="a5f7f32d9391c331ea82426857686694e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f7f32d9391c331ea82426857686694e">&#9670;&nbsp;</a></span>DlgDirSelectComboBoxExW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DlgDirSelectComboBoxExW </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwndDlg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>pwszOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cchOut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idComboBox</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00056_source.html">combodir.c</a> 第 <a class="el" href="a00056_source.html#l00092">92</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;{</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    BOOL fRet;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndComboBox;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwndList;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwndDlg;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwndComboBox;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <a class="code" href="a01889.html">PCBOX</a> pcbox;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    pwndDlg = <a class="code" href="a00293.html#a41d387d1b2d42169cbaa2092c8a02abf">ValidateHwnd</a>(hwndDlg);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordflow">if</span> (pwndDlg == NULL)</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    pwndComboBox = <a class="code" href="a00257.html#a3d091e94ee5a9047eaa5ab34e58320e3">_GetDlgItem</a>(pwndDlg, idComboBox);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="keywordflow">if</span> (pwndComboBox == NULL) {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_CONTROL_ID_NOT_FOUND, <a class="code" href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a>, <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    }</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    pcbox = ((<a class="code" href="a00257.html#a932d540405573f3986f057fc51c7488f">PCOMBOWND</a>)pwndComboBox)-&gt;pcbox;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordflow">if</span> (pcbox == NULL) {</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <a class="code" href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a>(ERROR_WINDOW_NOT_COMBOBOX, <a class="code" href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a>, <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    }</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    ThreadLockAlways(pwndComboBox, &amp;tlpwndComboBox);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pcbox-&gt;<a class="code" href="a01889.html#a15ff893b54d1beecbe69cfc960365b8a">spwndList</a>, &amp;tlpwndList);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    fRet = <a class="code" href="a00185.html#adb6f22ec0e1a1d277ec3f4c40693796c">xxxDlgDirSelectHelper</a>(pwndComboBox, pwszOut, cchOut, pcbox-&gt;<a class="code" href="a01889.html#a15ff893b54d1beecbe69cfc960365b8a">spwndList</a>);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    ThreadUnlock(&amp;tlpwndList);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    ThreadUnlock(&amp;tlpwndComboBox);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keywordflow">return</span> fRet;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03743_source.html#l00251">_GetDlgItem()</a>, <a class="el" href="a00371_source.html#l00030">RIP_VERBOSE</a>, <a class="el" href="a00371_source.html#l00119">RIPERR0</a>, <a class="el" href="a00257_source.html#l00462">tagCBox::spwndList</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a00293_source.html#l00090">ValidateHwnd</a> , 以及 <a class="el" href="a00185_source.html#l00681">xxxDlgDirSelectHelper()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00056_source.html#l00069">DlgDirSelectComboBoxExA()</a>.</p>

</div>
</div>
<a id="a82be10abc3b42ea2c92b4e48c0179f8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82be10abc3b42ea2c92b4e48c0179f8b">&#9670;&nbsp;</a></span>xxxCBDir()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int xxxCBDir </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#a0e71fed4fda7872f1712eca2edad533b">PCBOX</a>&#160;</td>
          <td class="paramname"><em>pcbox</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>attrib</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>pFileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00056_source.html">combodir.c</a> 第 <a class="el" href="a00056_source.html#l00028">28</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <a class="code" href="a01921.html">PLBIV</a> plb;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">int</span> errorValue;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pcbox-&gt;<a class="code" href="a01889.html#a68937d60a6f49b7a8431db62b38ea721">spwnd</a>);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    plb = ((<a class="code" href="a00257.html#a902d9d1c6aa646f726373a5bb52fd9e5">PLBWND</a>)pcbox-&gt;<a class="code" href="a01889.html#a15ff893b54d1beecbe69cfc960365b8a">spwndList</a>)-&gt;pLBIV;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(plb-&gt;<a class="code" href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">spwnd</a>, &amp;tlpwnd);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    errorValue = <a class="code" href="a00185.html#abc942610b7599a6912290fe73a89ef79">xxxLbDir</a>(plb, attrib, pFileName);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">switch</span> (errorValue) {</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordflow">case</span> LB_ERR:</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <span class="keywordflow">return</span> CB_ERR;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordflow">case</span> LB_ERRSPACE:</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keywordflow">return</span> CB_ERRSPACE;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keywordflow">return</span> errorValue;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00257_source.html#l00450">tagCBox::spwnd</a>, <a class="el" href="a00257_source.html#l00868">tagLBIV::spwnd</a>, <a class="el" href="a00257_source.html#l00462">tagCBox::spwndList</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a> , 以及 <a class="el" href="a00185_source.html#l00863">xxxLbDir()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00053_source.html#l00076">ComboBoxWndProcWorker()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa01889_html_a68937d60a6f49b7a8431db62b38ea721"><div class="ttname"><a href="a01889.html#a68937d60a6f49b7a8431db62b38ea721">tagCBox::spwnd</a></div><div class="ttdeci">struct tagWND * spwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00450">usercli.h:450</a></div></div>
<div class="ttc" id="aa00257_html_a932d540405573f3986f057fc51c7488f"><div class="ttname"><a href="a00257.html#a932d540405573f3986f057fc51c7488f">PCOMBOWND</a></div><div class="ttdeci">struct tagCOMBOWND * PCOMBOWND</div></div>
<div class="ttc" id="aa01921_html"><div class="ttname"><a href="a01921.html">tagLBIV</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00866">usercli.h:866</a></div></div>
<div class="ttc" id="aa00371_html_ad6b24a3d61abdc148c8751b5c5add686"><div class="ttname"><a href="a00371.html#ad6b24a3d61abdc148c8751b5c5add686">RIP_VERBOSE</a></div><div class="ttdeci">#define RIP_VERBOSE</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00030">winerrp.h:30</a></div></div>
<div class="ttc" id="aa00185_html_adb6f22ec0e1a1d277ec3f4c40693796c"><div class="ttname"><a href="a00185.html#adb6f22ec0e1a1d277ec3f4c40693796c">xxxDlgDirSelectHelper</a></div><div class="ttdeci">BOOL xxxDlgDirSelectHelper(PWND pwndDlg, LPWSTR lpszPathSpec, int chCount, PWND pwndListBox)</div><div class="ttdef"><b>Definition:</b> <a href="a00185_source.html#l00681">lboxctl3.c:681</a></div></div>
<div class="ttc" id="aa01889_html_a15ff893b54d1beecbe69cfc960365b8a"><div class="ttname"><a href="a01889.html#a15ff893b54d1beecbe69cfc960365b8a">tagCBox::spwndList</a></div><div class="ttdeci">struct tagWND * spwndList</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00462">usercli.h:462</a></div></div>
<div class="ttc" id="aa00257_html_a3d091e94ee5a9047eaa5ab34e58320e3"><div class="ttname"><a href="a00257.html#a3d091e94ee5a9047eaa5ab34e58320e3">_GetDlgItem</a></div><div class="ttdeci">PWND _GetDlgItem(PWND, int)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00251">client/wow.c:251</a></div></div>
<div class="ttc" id="aa00257_html_a902d9d1c6aa646f726373a5bb52fd9e5"><div class="ttname"><a href="a00257.html#a902d9d1c6aa646f726373a5bb52fd9e5">PLBWND</a></div><div class="ttdeci">struct tagLBWND * PLBWND</div></div>
<div class="ttc" id="aa00371_html_ae61d954062a9ece52e350e54cad9a23d"><div class="ttname"><a href="a00371.html#ae61d954062a9ece52e350e54cad9a23d">RIPERR0</a></div><div class="ttdeci">#define RIPERR0(idErr, flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00119">winerrp.h:119</a></div></div>
<div class="ttc" id="aa00899_html_abfae1dfb48db23dcea4494f7990ad6a6"><div class="ttname"><a href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a></div><div class="ttdeci">VOID ThreadLock(PVOID pobj, PTL ptl)</div></div>
<div class="ttc" id="aa01881_html"><div class="ttname"><a href="a01881.html">_TL</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00347">usercli.h:347</a></div></div>
<div class="ttc" id="aa02581_html"><div class="ttname"><a href="a02581.html">tagWND</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01388">user.h:1388</a></div></div>
<div class="ttc" id="aa00293_html_a41d387d1b2d42169cbaa2092c8a02abf"><div class="ttname"><a href="a00293.html#a41d387d1b2d42169cbaa2092c8a02abf">ValidateHwnd</a></div><div class="ttdeci">#define ValidateHwnd(hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00293_source.html#l00090">immcli.h:90</a></div></div>
<div class="ttc" id="aa00056_html_a5f7f32d9391c331ea82426857686694e"><div class="ttname"><a href="a00056.html#a5f7f32d9391c331ea82426857686694e">DlgDirSelectComboBoxExW</a></div><div class="ttdeci">int DlgDirSelectComboBoxExW(HWND hwndDlg, LPWSTR pwszOut, int cchOut, int idComboBox)</div><div class="ttdef"><b>Definition:</b> <a href="a00056_source.html#l00092">combodir.c:92</a></div></div>
<div class="ttc" id="aa01921_html_a5bd218ff1246ad262a29b369703fe78c"><div class="ttname"><a href="a01921.html#a5bd218ff1246ad262a29b369703fe78c">tagLBIV::spwnd</a></div><div class="ttdeci">PWND spwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00868">usercli.h:868</a></div></div>
<div class="ttc" id="aa01889_html"><div class="ttname"><a href="a01889.html">tagCBox</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00449">usercli.h:449</a></div></div>
<div class="ttc" id="aa00899_html_a70b09c3e2b495630f4205d34be505afb"><div class="ttname"><a href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a></div><div class="ttdeci">VOID CheckLock(PVOID pobj)</div></div>
<div class="ttc" id="aa00185_html_a131e5c46fc82be68e731aad956628a96"><div class="ttname"><a href="a00185.html#a131e5c46fc82be68e731aad956628a96">xxxDlgDirListHelper</a></div><div class="ttdeci">BOOL xxxDlgDirListHelper(PWND pwndDlg, LPWSTR lpszPathSpec, LPBYTE lpszPathSpecClient, int idListBox, int idStaticPath, UINT attrib, BOOL fListBox)</div><div class="ttdef"><b>Definition:</b> <a href="a00185_source.html#l00189">lboxctl3.c:189</a></div></div>
<div class="ttc" id="aa00185_html_abc942610b7599a6912290fe73a89ef79"><div class="ttname"><a href="a00185.html#abc942610b7599a6912290fe73a89ef79">xxxLbDir</a></div><div class="ttdeci">INT xxxLbDir(PLBIV plb, UINT attrib, LPWSTR lhszFileSpec)</div><div class="ttdef"><b>Definition:</b> <a href="a00185_source.html#l00863">lboxctl3.c:863</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_caf01b281dbc7d7ffe410ecf117b6142.html">client</a></li><li class="navelem"><a class="el" href="a00056.html">combodir.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
